package com.jiepu.homework.module5.exercise5;

public class Customer { // 客户类 
	
	private Account account;		// 账户
	private String name;			// 姓名
	
	// 注册成为客户时必须提供姓名，并且不能修改
	public Customer(String name) {
		this.name = name;
	}
	
	public Account getAccount() {	// 获取某个客户的账户
		return this.account;
	}
	
	public void setAccount(Account account) { // 设置某个客户的账户
		this.account = account;
	}
	
	public String getName() {	// 查询客户的姓名
		return this.name;
	}

}
